package com.xinz.serialization;

public class ObjectAccessor extends Accessor.Abstract{

	Object value;
	
	@Override
	public Object get() throws IllegalAccessException {
		return value;
	}
	
	@Override
	public void set(Object value) throws IllegalAccessException {
		this.value = value;
	}
	
	@Override
	public Class<?> getType() throws IllegalAccessException {
		return value.getClass();
	}
	
	@Override
	public boolean isNull() {
		return value==null;
	}
}
